package com.ap.core.domain;

import org.hibernate.annotations.TypeDef;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * User: Rohit.Dixit
 */
@Entity
@Table(name = "T_DELIVERY_TYPE")
@AttributeOverride(name = "id",column = @Column(name = "DELIVERY_TYPE_CODE"))
@TypeDef(name = "id",  typeClass = String.class)
public class DeliveryType extends Identifiable<String>{

	private static final long serialVersionUID = 8643255593635885805L;

	@Column(name = "DELIVERY_TYPE_NAME")
    private String deliveryTypeName;

		
	@Column(name = "DELIVERY_TYPE_DESCRIPTION")
    private String deliveryTypeDescription;

    private DeliveryType(){}


	public String getDeliveryTypeName() {
		return deliveryTypeName;
	}

	public String getDeliveryTypeDescription() {
		return deliveryTypeDescription;
	}


}
